package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.DigitalSliceCaseGroup;
import com.zhijian.medical.entity.vo.request.DigitalSliceCaseGroupSearchVo;
import com.zhijian.medical.entity.vo.response.DigitalSliceCaseGroupVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 数字切片库-组 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2023-10-19 09:58:55
 */
public interface DigitalSliceCaseGroupService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    DigitalSliceCaseGroup selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    DigitalSliceCaseGroupVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param digitalSliceCaseGroup
     * @return
     */
    Long insert(DigitalSliceCaseGroup digitalSliceCaseGroup);

    /**
     * 更改
     *
     * @param digitalSliceCaseGroup
     * @return
     */
    boolean update(DigitalSliceCaseGroup digitalSliceCaseGroup);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(DigitalSliceCaseGroup record);

    /**
     * 总数
     *
     * @param digitalSliceCaseGroupSearchVo
     * @return
     */
    Integer count(DigitalSliceCaseGroupSearchVo digitalSliceCaseGroupSearchVo);

    /**
     * 列表
     *
     * @param digitalSliceCaseGroupSearchVo
     * @return
     */
    List<DigitalSliceCaseGroupVo> selectList(DigitalSliceCaseGroupSearchVo digitalSliceCaseGroupSearchVo);

    /**
     * 分页查询
     *
     * @param digitalSliceCaseGroupSearchVo
     * @return
     */
    Page<DigitalSliceCaseGroupVo> selectPage(DigitalSliceCaseGroupSearchVo digitalSliceCaseGroupSearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<DigitalSliceCaseGroup> entities);
}